package cn.wolfcode.wolf2w.service;


import cn.wolfcode.wolf2w.domain.Banner;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.BannerQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 广告服务接口
 */
public interface IBannerService {


    Banner get(String id);

    List<Banner> selectAll();

    Page<Banner> query(BannerQuery qo);

    void update(Banner banner);

    void save(Banner banner);

    void deleteById(String id);

    /**
     * 查询前五个Banner
     * 按照sequence排序
     * @return
     */
    List<Banner> queryFive();

}
